import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/frontend/api/login',
    method: 'post',
    data

  })
}

export function getInfo(token) {
  return request({
    url: '/frontend/api/user/info',
    method: 'get'
  })
}

export function getAuthorityList(token) {
  return request({
    url: '/frontend/api/authority/getUserAuthority',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/frontend/api/user/logout',
    method: 'post'
  })
}
